package cms.jason.web.controller;

import cms.jason.dao.PermissionDao;
import cms.jason.entity.Permission;
import cms.jason.entity.Permission_;
import com.cn.lotary.base.dao.BaseDao;
import com.cn.lotary.base.web.BaseController;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.persistence.metamodel.SingularAttribute;

/**
 *
 * @author Jason
 */
@ManagedBean
public class PermissionController extends BaseController<Permission> {

    @EJB
    private PermissionDao permissionDao;

    @Override
    protected BaseDao<Permission> dao() {
        return permissionDao;
    }

    @Override
    protected SingularAttribute selectItemLabel() {
        return Permission_.name;
    }
}
